This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
There are a couple ways to do this, and how you do it depends on whether you have the HTTP service available, how familiar you are with creating HTTP POST, and how much data you need to transfer to the external process. With either method you should have a place where the results of processing are stored (I presume you have that already.)
The first method tries to use only LotusScript and Notes objects. You must create a database to store the request from the user. A request is just a Notes document with the information regarding what the agent is supposed to do. Here are the steps…
1. Create the request and execute the “kicker” agent using RunOnServer.
2. The “kicker” will kick off the real agent using SendConsoleCommand of NotesSession.
3. The real agent will execute and process waiting requests.
4. The agent will deposit the results in the results db and either send an email to the user (with a doclink) or send a console command to broadcast to the user a message that the job is complete.
In this way you can have the process execute immediately and have the user notified immediately.
The second method improves upon the first in that you don’t need a kicker agent, don’t need a requests database, and can receive a “good-to-go” acknowledgement of the passed data. The second method uses the HTTP protocol to communicate with the agent. So here are the steps…
1. Prepare POST data containing the information required for your request.
2. Execute an HTTP POST to execute the agent.
3. The agent can validate the data and use a Print statement to return a response.
4. The agent processes the request as described above.
If you’re comfortable with creating and receiving HTTP POST requests in LotusScript, and the HTTP process is running on the server, then that’s probably the best way to go. Otherwise, the more kludgey LotusScript method should get the job done.
Good Luck!
Feedback response number WLOO7ZQ4S4 created by ~Julia Feztoosterader on 01/15/2010